<?php

namespace app\validate\admin;

use app\common\validate\BaseValidate;

/**
 * Class Validate
 * https://www.kancloud.cn/manual/thinkphp6_0/1037624
 * @package app\daily\validate
 */
class Notice extends BaseValidate
{
    //定义验证规则
    protected $rule = [
        'notice_type|公告类型' => 'require|number',
        'notice_content|公告内容' => 'require|min:10|max:200',
    ];
    //定义验证场景要与方法名相同走自动验证
    protected $scene = [
        'update' => ['notice_type', 'notice_content'],
    ];

}
